package test;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.ClickEvent;


public class Grids extends Composite {
	private Grid inputs_grid=new Grid();;
	Grid getInputs_grid() {
		return inputs_grid;
	}


	public void setInputs_grid(Grid inputs_grid) {
		this.inputs_grid = inputs_grid;
	}


	public VerticalPanel verticalPanel = new VerticalPanel();;

	
	public Grids(int x,int y) {
		
		
		initWidget(verticalPanel);
		verticalPanel.add(inputs_grid);
		inputs_grid.resize(x,y);

		
		for(int i=0;i<x;i++){
			for(int j=0;j<y;j++){
				TextBox box=new TextBox();
				inputs_grid.setWidget(i,j,box);
			}
		}
		
	}



}
